home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CRESC
/
Lengths
/
lengths-to-rests
< prev
Wrap
Lisp/Scheme
|
1996-12-31
|
610b
|
19 lines
lengths-to-rests lengths-pattern
This can be a valuable companion function to symbol-interleave, where two patterns are mixed sequentially.
(setq len1 '(48 96 24 12 12 12 12 24 48))
(setq len1r (lengths-to-rests len1))
--> (-48 -96 -24 -12 -12 -12 -12 -24 -48)
(setq rhy1 (symbol-interleave len1 len1r))
--> (48 -48 96 -96 24 -24 12 -12 12 -12 12 -12 12 -12 24 -24 48 -48)
(setq len1 '(1/16 1/8 1/16))
(setq len1r (lengths-to-rests len1))
--> (-1/16 -1/8 -1/16)
It can also be used to provide sections of rests inside a long zone-length.
(setq zone (append len1 len1r len1 len1 len1 len1))